#ifndef _TIMER_H
#define _TIMER_H

#include <iostream>
#include "zthread/Runnable.h"

#define MAX_TIME 270

class MyTimer : public ZThread::Runnable
{
 public:
  MyTimer() { currentTime = 0; }
  
  void run()
  {
    while(++currentTime <= MAX_TIME) {
      sleep(1);
    }
  }

  int getCurrentTime() { return currentTime; }

  
 private:
  int currentTime;
};

#endif
